feat: add blog-admin example demonstrating advanced structpages features#2
Open
feat: add blog-admin example demonstrating advanced structpages features#2
Conversation
This comprehensive example showcases: - Dependency injection with multiple services (Store, Auth, Session, Config) - Nested routing (3+ levels deep) with admin panel structure - Session-based authentication with bcrypt password hashing - Middleware patterns (auth, CSRF, logging) - Props pattern for complex data loading - HTMX integration with partial rendering - SQLite database with relationships - Form handling with go-playground/form - Custom error handling - Reusable Templ components - Static file serving The example includes a fully functional blog with: - Public pages (home, posts, categories, search) - Authentication (login/logout) - Admin dashboard with statistics - Post management (CRUD operations) - User management - Media library placeholder - Settings management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
- Remove log files, database, cookies, and binary from git - Add .gitignore to prevent tracking generated files - Keep only source code in version control 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a comprehensive
blog-adminexample that demonstrates all the advanced features of structpages mentioned in the README. It serves as a complete real-world application example.Features Demonstrated
/admin/posts/{id}/edit)What's Included
The blog application includes:
Testing
Run the example:
Default credentials:
admin/admin123Files Added
examples/blog-admin/examples/README.mdwith new example documentation🤖 Generated with Claude Code